DESCRIPTION = "Mission Oriented Operating Suite"
LICENSE = "GPL"
PR = "r0"

DEPENDS = ""

SRC_URI = "file://MOOSDBMain.cpp \
           file://MOOSDB.cpp \
           file://MOOSDB.h \
           file://MOOSDBHTTPServer.h \
           file://MOOSDBHTTPServer.cpp \
           file://HTTPConnection.h \
           file://HTTPConnection.cpp \
           file://MOOSDBVar.h \
           file://MOOSDBVar.cpp \
           file://MOOSRegisterInfo.h \
           file://MOOSRegisterInfo.cpp \
           file://MOOSLib.h \
           file://MOOSGenLib.h \
           file://MOOSCommServer.h \
           file://MOOSCommServer.cpp \
           file://MOOSCommObject.h \
           file://MOOSCommObject.cpp \
           file://MOOSCommPkt.h \
           file://MOOSCommPkt.cpp \
           file://MOOSAssert.h \
           file://MOOSMsg.h \
           file://MOOSMsg.cpp \
           file://MOOSLock.h \
           file://MOOSLock.cpp \
           file://MOOSThread.h \
           file://MOOSGenLibGlobalHelper.h \
           file://MOOSGenLibGlobalHelper.cpp \
           file://MOOSGlobalHelper.h \
           file://MOOSGlobalHelper.cpp \
           file://MOOSCommClient.h \
           file://MOOSCommClient.cpp \
           file://MOOSApp.h \
           file://MOOSApp.cpp \
           file://MOOSFileReader.h \
           file://MOOSFileReader.cpp \
           file://MOOSSkewFilter.h \
           file://MOOSSkewFilter.cpp \
           file://ProcessConfigReader.h \
           file://ProcessConfigReader.cpp \
           file://MOOSLinuxSerialPort.h \
           file://MOOSLinuxSerialPort.cpp \
           file://MOOSSerialPort.h \
           file://MOOSSerialPort.cpp \
           file://MOOSVariable.h \
           file://MOOSVariable.cpp \
           file://MOOSInstrument.h \
           file://MOOSInstrument.cpp \
           file://MOOSException.h \
           file://MOOSException.cpp \
           file://XPCGetProtocol.h \
           file://XPCGetProtocol.cpp \
           file://XPCGetHostInfo.h \
           file://XPCGetHostInfo.cpp \
           file://XPCSocket.h \
           file://XPCSocket.cpp \
           file://XPCTcpSocket.h \
           file://XPCTcpSocket.cpp \
           file://XPCException.h \
           "

S = "${WORKDIR}"

do_compile () { 
    ${CXX} -DGUMSTIX -o MOOSDB *.cpp -lpthread
}

do_install () { 
    install -d ${D}${bindir} 
    install -m 0755 ${S}/MOOSDB ${D}${bindir}/
}

FILES_${PN} = "${bindir}/MOOSDB"
